/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import Logica.TiempoEsperaCirugia;
import java.sql.SQLException;
import javax.swing.JFrame;

/**
 *
 * @author Ana Maria
 */
public class TiempoEsperaCirugias extends javax.swing.JInternalFrame {

    boolean porMesesUnAño;
    boolean porTresAños;
    boolean porEstrato;
    boolean porSexo;
    boolean porNivelE;
    boolean porEstadoC;
    boolean porDiasMesAño;
    boolean porNombreDiaSemanaMesAño;
    boolean porDiaFestivo;
    boolean porTrimestre;
    boolean porSemestre;
    String anio;
    String mes;

    public TiempoEsperaCirugias() {
        super("Tiempos de espera Cirugias");
        
        initComponents();
        
        grupo.add(rb_porMesesUnAño);
        grupo.add(rb_porTresAños);
        grupo.add(rb_porEstrato);
        grupo.add(rb_porSexo);
        grupo.add(rb_porNivelEducativo);
        grupo.add(rb_porEstadoCivil);
        grupo.add(rb_porDiasMesAño);
        grupo.add(rb_porNombreDiaSemanaMesAño);
        grupo.add(rb_porDiaFestivo);
        grupo.add(rb_porTrimestre);
        grupo.add(rb_porSemestre);

        grupoTipo.add(tipoPastel);
        grupoTipo.add(tipoBarra);
        
        comboAño.setEnabled(false);
        comboMes.setEnabled(false);
        

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        grupo = new javax.swing.ButtonGroup();
        grupoTipo = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        comboAño = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        rb_porMesesUnAño = new javax.swing.JRadioButton();
        rb_porTresAños = new javax.swing.JRadioButton();
        rb_porDiasMesAño = new javax.swing.JRadioButton();
        rb_porNombreDiaSemanaMesAño = new javax.swing.JRadioButton();
        rb_porDiaFestivo = new javax.swing.JRadioButton();
        rb_porTrimestre = new javax.swing.JRadioButton();
        rb_porSemestre = new javax.swing.JRadioButton();
        jLabel3 = new javax.swing.JLabel();
        comboMes = new javax.swing.JComboBox();
        jPanel2 = new javax.swing.JPanel();
        rb_porEstrato = new javax.swing.JRadioButton();
        rb_porSexo = new javax.swing.JRadioButton();
        rb_porNivelEducativo = new javax.swing.JRadioButton();
        rb_porEstadoCivil = new javax.swing.JRadioButton();
        jPanel3 = new javax.swing.JPanel();
        tipoPastel = new javax.swing.JRadioButton();
        tipoBarra = new javax.swing.JRadioButton();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 18)); // NOI18N
        jLabel1.setText("Tiempos de espera Cirugias");

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Fechas"));

        comboAño.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2006", "2007", "2008", "Todos" }));

        jLabel2.setText("Año");

        rb_porMesesUnAño.setText("Meses de un año");
        rb_porMesesUnAño.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porMesesUnAñoActionPerformed(evt);
            }
        });

        rb_porTresAños.setText("Tres años");
        rb_porTresAños.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porTresAñosActionPerformed(evt);
            }
        });

        rb_porDiasMesAño.setText("Dias mes + año");
        rb_porDiasMesAño.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porDiasMesAñoActionPerformed(evt);
            }
        });

        rb_porNombreDiaSemanaMesAño.setText("Dias semana por mes + año");
        rb_porNombreDiaSemanaMesAño.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porNombreDiaSemanaMesAñoActionPerformed(evt);
            }
        });

        rb_porDiaFestivo.setText("Dia Festivo por mes + año");
        rb_porDiaFestivo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porDiaFestivoActionPerformed(evt);
            }
        });

        rb_porTrimestre.setText("Trimestre");
        rb_porTrimestre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porTrimestreActionPerformed(evt);
            }
        });

        rb_porSemestre.setText("Semestre");
        rb_porSemestre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porSemestreActionPerformed(evt);
            }
        });

        jLabel3.setText("Mes");

        comboMes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "Todos" }));

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(rb_porMesesUnAño)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(rb_porTresAños)
                    .addComponent(rb_porDiasMesAño)
                    .addComponent(rb_porNombreDiaSemanaMesAño)
                    .addComponent(rb_porDiaFestivo)
                    .addComponent(rb_porTrimestre)
                    .addComponent(rb_porSemestre))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addGap(18, 18, 18)
                        .addComponent(comboAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addGap(18, 18, 18)
                        .addComponent(comboMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(58, 58, 58))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(rb_porMesesUnAño)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(comboAño, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel2))
                    .addComponent(rb_porTresAños))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rb_porDiasMesAño)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(rb_porNombreDiaSemanaMesAño))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(16, 16, 16)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(comboMes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rb_porDiaFestivo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(rb_porTrimestre)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rb_porSemestre))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Demografia"));

        rb_porEstrato.setText("Estrato");
        rb_porEstrato.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porEstratoActionPerformed(evt);
            }
        });

        rb_porSexo.setText("Sexo");
        rb_porSexo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porSexoActionPerformed(evt);
            }
        });

        rb_porNivelEducativo.setText("Nivel Educativo");
        rb_porNivelEducativo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porNivelEducativoActionPerformed(evt);
            }
        });

        rb_porEstadoCivil.setText("Estado Civil");
        rb_porEstadoCivil.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_porEstadoCivilActionPerformed(evt);
            }
        });

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Tipo Grafica"));

        tipoPastel.setText("Pastel");

        tipoBarra.setText("Barras");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(tipoPastel)
                .addGap(18, 18, 18)
                .addComponent(tipoBarra)
                .addContainerGap(136, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(tipoPastel)
                    .addComponent(tipoBarra))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(rb_porEstrato)
                            .addComponent(rb_porSexo)
                            .addComponent(rb_porNivelEducativo)
                            .addComponent(rb_porEstadoCivil))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(rb_porEstrato)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rb_porSexo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rb_porNivelEducativo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rb_porEstadoCivil)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jButton1.setText("Consultar");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("Salir");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addComponent(jLabel1)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(layout.createSequentialGroup()
                .addGap(243, 243, 243)
                .addComponent(jButton1)
                .addGap(18, 18, 18)
                .addComponent(jButton2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addComponent(jLabel1)
                .addGap(37, 37, 37)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addContainerGap(79, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void rb_porNivelEducativoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porNivelEducativoActionPerformed
        comboAño.setEnabled(false);
        comboMes.setEnabled(false);        // TODO add your handling code here:
    }//GEN-LAST:event_rb_porNivelEducativoActionPerformed

    private void rb_porMesesUnAñoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porMesesUnAñoActionPerformed

        comboAño.setEnabled(true);
        comboMes.setEnabled(true);
    }//GEN-LAST:event_rb_porMesesUnAñoActionPerformed

    private void rb_porTresAñosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porTresAñosActionPerformed

        comboAño.setEnabled(false);
        comboMes.setEnabled(false);
    }//GEN-LAST:event_rb_porTresAñosActionPerformed

    private void rb_porDiasMesAñoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porDiasMesAñoActionPerformed
        comboAño.setEnabled(true);
        comboMes.setEnabled(true);
    }//GEN-LAST:event_rb_porDiasMesAñoActionPerformed

    private void rb_porNombreDiaSemanaMesAñoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porNombreDiaSemanaMesAñoActionPerformed
        comboAño.setEnabled(true);
        comboMes.setEnabled(true);         // TODO add your handling code here:
    }//GEN-LAST:event_rb_porNombreDiaSemanaMesAñoActionPerformed

    private void rb_porDiaFestivoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porDiaFestivoActionPerformed
        comboAño.setEnabled(true);
        comboMes.setEnabled(true);         // TODO add your handling code here:
    }//GEN-LAST:event_rb_porDiaFestivoActionPerformed

    private void rb_porTrimestreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porTrimestreActionPerformed
        comboAño.setEnabled(false);
        comboMes.setEnabled(false);         // TODO add your handling code here:
    }//GEN-LAST:event_rb_porTrimestreActionPerformed

    private void rb_porSemestreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porSemestreActionPerformed

        comboAño.setEnabled(false);
        comboMes.setEnabled(false);        // TODO add your handling code here:
    }//GEN-LAST:event_rb_porSemestreActionPerformed

    private void rb_porEstratoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porEstratoActionPerformed
        comboAño.setEnabled(false);
        comboMes.setEnabled(false);        // TODO add your handling code here:
    }//GEN-LAST:event_rb_porEstratoActionPerformed

    private void rb_porSexoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porSexoActionPerformed
        comboAño.setEnabled(false);
        comboMes.setEnabled(false);        // TODO add your handling code here:
    }//GEN-LAST:event_rb_porSexoActionPerformed

    private void rb_porEstadoCivilActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_porEstadoCivilActionPerformed
        comboAño.setEnabled(false);
        comboMes.setEnabled(false);        // TODO add your handling code here:
    }//GEN-LAST:event_rb_porEstadoCivilActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed

        
    porMesesUnAño = rb_porMesesUnAño.isSelected();
    porTresAños = rb_porTresAños.isSelected();
    porEstrato = rb_porEstrato.isSelected();
    porSexo = rb_porSexo.isSelected();
    porNivelE = rb_porNivelEducativo.isSelected();
    porEstadoC = rb_porEstadoCivil.isSelected();
    porDiasMesAño = rb_porDiasMesAño.isSelected();
    porNombreDiaSemanaMesAño = rb_porNombreDiaSemanaMesAño.isSelected();
    porDiaFestivo = rb_porDiaFestivo.isSelected();
    porTrimestre = rb_porTrimestre.isSelected();
    porSemestre = rb_porSemestre.isSelected();
    anio = comboAño.getSelectedItem().toString();
    mes = comboMes.getSelectedItem().toString();
    
    try{
        TiempoEsperaCirugia tc = new TiempoEsperaCirugia();
        String consulta = tc.construirTiempoEsperaCirguia(porMesesUnAño, porTresAños,  porEstrato,  porSexo,
             porNivelE,  porEstadoC,  porDiasMesAño,  porNombreDiaSemanaMesAño,  porDiaFestivo,
             porTrimestre,  porSemestre,  anio,  mes);
            
        
        if(tipoPastel.isSelected()){
            
            tc.CrearGraficoDePastel(consulta, "Colombia Saludable - Tiempo espera cirugias");
        }else{
        
            tc.CrearGraficoDeBarras(consulta, "Colombia Saludable - Tiempo espera cirugias", "", "Promedio dias de espera");
        }
    
    }catch(Exception sql ){
        System.out.println(sql);
    }
        
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed

        this.dispose();
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton2ActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /* Set the Nimbus look and feel */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
//         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(TiempoEsperaCirugias.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(TiempoEsperaCirugias.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(TiempoEsperaCirugias.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(TiempoEsperaCirugias.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /* Create and display the form */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//            public void run() {
//                new TiempoEsperaCirugias().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JComboBox comboAño;
    private javax.swing.JComboBox comboMes;
    private javax.swing.ButtonGroup grupo;
    private javax.swing.ButtonGroup grupoTipo;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JRadioButton rb_porDiaFestivo;
    private javax.swing.JRadioButton rb_porDiasMesAño;
    private javax.swing.JRadioButton rb_porEstadoCivil;
    private javax.swing.JRadioButton rb_porEstrato;
    private javax.swing.JRadioButton rb_porMesesUnAño;
    private javax.swing.JRadioButton rb_porNivelEducativo;
    private javax.swing.JRadioButton rb_porNombreDiaSemanaMesAño;
    private javax.swing.JRadioButton rb_porSemestre;
    private javax.swing.JRadioButton rb_porSexo;
    private javax.swing.JRadioButton rb_porTresAños;
    private javax.swing.JRadioButton rb_porTrimestre;
    private javax.swing.JRadioButton tipoBarra;
    private javax.swing.JRadioButton tipoPastel;
    // End of variables declaration//GEN-END:variables
}
